<?php
/**
 * pages.class
 *
 * script
 *
 * @version:	0.1a
 * @package:	global
 * @author:	alex_ez
 * @created:	31.05.2009 18:02:24
 *
 * @copyright:	(c) 2009 alex <qfox@ya.ru> yaroshevich aka alex_ez. All rights reserved.
 */

class pages extends model
{
	protected $table = 'core_pages';
	
	public function add( $data, $ignore = false )
	{
		//fb::log( $this ->db ->makeSetList( $data ) );
		//return ;//$this ->db ->makeSet( $data );
		return $this ->db ->exec( sprintf(
			"INSERT INTO %s SET %s;",
			$this ->table,
			$this ->db ->makeSetList( $data )
			) );
		//$_r = $db ->_list( "SELECT * FROM core_pages ORDER BY priority ASC, id ASC;" );
	}
	
}

?>